home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
language
/
isetl.arc
/
file.t
< prev
next >
Wrap
Text File
|
1987-08-20
|
482b
|
33 lines
f:= openw("abc");
for i in [1..10] do
print i to f;
end;
close(f);
f := openr("abc");
t := [];
while not eof(f) do
read i from f; $ NB Will read an om, but
t := t with i; $ t with om = t
end;
close(f);
print t = [1..10];
f:= opena("abc");
for i in [1..10] do
print i to f;
end;
close(f);
f := openr("abc");
t := [];
while not eof(f) do
read i from f; $ NB Will read an om, but
t := t with i; $ t with om = t
end;
close(f);
print t = [1..10] + [1..10];